package bean.scan;
 

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test { 

	public static void main(String[] args) {
		
		AbstractApplicationContext context = new ClassPathXmlApplicationContext("annotation.xml");
	
		PersonServiceImpl pService = context.getBean("personServiceImpl", PersonServiceImpl.class);	
		System.out.println(pService.getPerson().getName());
	}
}
